
<nav id="navigation" class="navbar">
    <div class="nav-container">
        <!-- logo -->
        <div class="navbar-header">
            <a class="navbar-brand" href="{{URL::to('/')}}">logo</a>
        </div>

        <!-- navigation content -->
        <div class="collapse navbar-collapse">
              <!----------------- nav-function ------------------------>
              <ul id="nav-function" class="nav navbar-nav navbar-right">
                <!-------------商品首页项--------------->
                <li id="product-li" class="main-li"><a href="product">商店首页</a></li>


                @if(Auth::check())
                          <!------------购物车项---------------->
                          <li id="shopping-cart-li" class="main-li"><a href="cart">购物车</a></li>
                      @if(Role::checkIdentify('administrator'))
                          <li class="main-li"><a href="administrator">后台管理</a></li>
                      @endif
                          <!--------------个人相关--------------->
                <li id="personal-li">
                    <a href="{{URL::to('/personal#/baseinfo')}}">{{Auth::user()->getAttribute('username')}}</a> |
                    <a href="{{URL::action('AuthorityController@getLogout')}}">注销</a>
                </li>
                @else

                <li id="personal-li">
                    <a href="{{URL::action('AuthorityController@getLogin')}}">登录</a> |
                    <a href="{{URL::action('AuthorityController@getSignup')}}">注册</a>
                </li>
                @endif


              </ul>

        </div><!-- navbar-collapse -->
    </div>
    <hr/>
</nav>